package com.fd.dao;

import com.fd.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    /*public List<User> findByName(User user);
    public List<User> getUserListByChoose(User user);
    public List<User> getUserListByChooseAndWhere(User user);
    public int updateUserBySet(User user);
    public List<User> findNameAndTrim(User user);
    public List<User> findUserByList(List<Integer> ids);
    List<User> testMap(Map<String, Object> testMap);*/


    /*User getUser(String s);
    int deleteUser(Integer s);
    Integer insertUser(User user);
    int updateUser(User user);*/

    //查询所有数据
    List<User> getUserAll();
    //查看一本书
    User getUser(int id);
    //修改一书(可选)
    int updateUser(User user);
    //删除一本书
    int deleteUser(@Param("id") int id);
    //增加一本书
    int insertUser(User user);
}
